<%@ page import="javabean.statementOfIncome" %>
<%@ page import="java.util.List" %>
<%@ page import="DAO.StatementOfIncomeDAO" %>
<%@ page import="DAO.UserDetailsDAO" %>
<%@ page import="DAO.TotalFeeDAO" %>
<%@ page import="BIZ.statementofncomeBiz" %>
<%@ page import="BIZ.UserBiz" %>
<%@ page import="BIZ.totalFeeBiz" %>
<%@ page import="javabean.userDetails" %><%--
  Created by IntelliJ IDEA.
  User: Ywaitz
  Date: 2022/3/20
  Time: 8:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<table bgcolor="#9999dd" border="1" width="300">
    <tr>
        <th>注册日期:</th>
        <th>用户:</th>
        <th>密码:</th>
        <th>电话:</th>
        <th>邮箱:</th>
        <th>车牌号1:</th>
        <th>车牌号2:</th>
        <th>车牌号3:</th>
        <th>剩余天数:</th>
        <th>剩余次数:</th>
        <th>账户余额:</th>
        <th>用户类型:</th>
    </tr>
    <%
        StatementOfIncomeDAO statementOfIncomeDAO = new StatementOfIncomeDAO();
        UserDetailsDAO userDetailsDAO = new UserDetailsDAO();
        TotalFeeDAO totalFeeDAO = new TotalFeeDAO();
        statementofncomeBiz statementofncomeBiz=new statementofncomeBiz();
        UserBiz userBiz=new UserBiz();
        totalFeeBiz totalFeeBiz=new totalFeeBiz();
        //遍历结果集
        List<userDetails> aa = userDetailsDAO.getAllUsers();
    %>

    <%
        //遍历结果集
        for (int i = 0; i < aa.size(); i++)
        {%>
    <!-- <tr>
    <th>序号:</th>
    <th>姓名:</th>
    <th>年龄:</th>
    </tr> -->
    <tr>
        <!-- 输出结果集 -->
        <td><%=aa.get(i).getRegistrationDate()%></td>
        <td><%=aa.get(i).getUserId() %></td>
        <td><%=aa.get(i).getPassword()%></td>
        <td><%=aa.get(i).getPhone() %></td>
        <td><%=aa.get(i).getEmail() %></td>
        <td><%=aa.get(i).getCarId1()%></td>
        <td><%=aa.get(i).getCarId2() %></td>
        <td><%=aa.get(i).getCarId3() %></td>
        <td><%=aa.get(i).getRemainingDays() %></td>
        <td><%=aa.get(i).getRemainingDegrees() %></td>
        <td><%=aa.get(i).getAccountBalance()%></td>
        <td><%=aa.get(i).getStatus() %></td>
    </tr>
    <%}
    %>
</table>


</table>
</body>
</html>
